package  com.housediyadmin.command.goodsCommand
{
	import com.housediyadmin.events.goodsEvents.AddGoodsEvent;
	import com.housediyadmin.events.goodsEvents.GetAllGoodsEvent;
	import com.housediyadmin.events.goodsEvents.GetGoodsByTypeIDEvent;
	import com.housediyadmin.model.GoodsModel;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/11/16
	 */	
	public class UpdateGoodsCommand extends Command
	{
		/*[Inject]
		public var event:GetGoodsByTypeIDEvent;*/
		
		[Inject]
		public var event:AddGoodsEvent;
		
		[Inject]
		public var goodsModel:GoodsModel;
		
		override public function execute():void
		{
			goodsModel.updateGoods(event.goods);			
		}
		
	}
}